package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@ApiModel("管理员创建对象")
@Data
public class CsSystemAdminActivateBean{

    @ApiModelProperty(required = true, value = "管理员记录 ID", dataType = "string")
    private Integer errorCode;

    @ApiModelProperty(required = true, value = "管理员姓名", dataType = "string")
    @NotEmpty(message = "姓名为必填项")
    private String errorMsg;

    @ApiModelProperty(required = false, value = "管理员用户 ID", dataType = "string")
    @NotEmpty(message = "管理员用户 ID")
    private String target;

    @ApiModelProperty(required = true, value = "管理员的单位/组织名称", dataType = "string")
    private CsSystemAdminActivateDetailsBean details;
}
